ScriptCodeRun
To return the result of a multiple encoding conversion, the functionConvertFromUnicodeToScriptCodeRun
(page 155) uses a script code run structure.The script code run structure uses an extended script code with values in the range 0-254, which are the text encoding base equivalents to Mac OS encodings. Values 0-32 correspond directly to traditional script codes. This allows a script code run to distinguish Icelandic, Turkish, Symbol, Zapf Dingbats, and so on.
A script code run structure is defined by the
ScriptCodeRun
data type.
struct ScriptCodeRun { ByteOffset offset; ScriptCode script; }; typedef struct ScriptCodeRun ScriptCodeRun;
Field Description
offset
- The beginning character position of a text run and its script code in the converted text.
script
- The script code for the text that begins at the position specified.